<?php
if (!defined('CX')) {
    exit();
}

/**
 *
 *
 * @author 星期八 <ixqbar@gmail.com>
 * @editor $Author: ixqbar $
 * @date $Date: 2011-05-07 13:24:30 +0000 (Sat, 07 May 2011) $
 * @version $Revision: 3 $
 */

class IndexController extends Controller {
    
    public function index() {
        //from header and cache
        if ($this->template->cached('index')) {
            return;
        }

        //from db
        $guest_module = CXTool::import('@.guest');
        $guest = $guest_module->getGuestById(1);
        var_dump($guest);

        $this->template->render('index', array('resource_url' => $this->cdn));
    }
}

?>
